#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>


int main(int argc, char* argv[])
{
    int opt;
    const char* opt_str = "o:s:t:a";
    while(-1 != (opt = getopt(argc, argv, opt_str)))
    {
        switch(opt)
        {
            case 'o':
                printf("destination file : %s\n", optarg);
            break;

            case 's':
                printf("size : %s\n", optarg);
            break;

            case 't':
                printf("type : %s\n", optarg);
            break;

            default:
                /* won't exe. */
                printf("not recognized : %c[%d]=%s\n", opt, optarg);
            break;
        }
    }

    return 0;
}


